#include "thread_pool.hpp"
#include "Task.hpp"

using namespace ns_thread_pool;
using namespace ns_task;

int main()
{
    srand(time(0));
    ThreadPool<Task> tp(5);

    string ops = "+-*/%";
    while(1)
    {
        sleep(1);
        int x = rand() % 10 + 1;
        int y = rand() % 10 + 1;
        char op = ops[rand() % 5];
        Task t(x, y ,op);
        tp.PushTask(t);
    }
    return 0;
}